package com.itheima.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

// 提供 get set  toString   无参  全参
@Data
@AllArgsConstructor
@NoArgsConstructor
// 被扫描
@Component
//指定标签前缀自动装配
@ConfigurationProperties(prefix = "enterprise")
public class Enterprise {

    private String name;
    private Integer age;
    private String tell;
    private String[] subject;
}
